#include "TcpPort.h"
#include "ByteBufferPool.h"
#include "Poco/Net/SocketReactor.h"

using namespace cm_nat;

class MyHandler: public TcpPortHandler
{
public:
    virtual void handleReceive(ByteBuffer* data)
    {

    }
    virtual void handleTimer(EventNotification* event)
    {

    }

};


int main()
{
    SocketReactor reactor;
    reactor.setTimeout(Poco::Timespan(1,0,0,0,0));

    ByteBufferPool bpool;
    bpool.init(10, 200);

    TcpPort tp(reactor, &bpool);

    SocketAddress sa("192.168.1.99", 800);
    tp.init(sa);


    reactor.run();
    return 0;
}